load("//eden/scm:targets.bzl", "rust_python_library")

oncall("sapling")

rust_python_library(
    name = "pyedenapi",
    srcs = glob(["src/**/*.rs"]),
    autocargo = {"cargo_toml_config": {"extra_buck_dependencies": {"dependencies": ["//eden/scm/lib/revisionstore:revisionstore"]}}},
    crate_root = "src/lib.rs",
    deps = [
        "fbsource//third-party/rust:anyhow",
        "fbsource//third-party/rust:futures",
        "fbsource//third-party/rust:sha1",
        "fbsource//third-party/rust:tracing",
        "//eden/scm/lib/async-runtime:async-runtime",
        "//eden/scm/lib/config/model:configmodel",
        "//eden/scm/lib/cpython-async:cpython-async",
        "//eden/scm/lib/cpython-ext:cpython-ext",
        "//eden/scm/lib/dag/dag-types:dag-types",
        "//eden/scm/lib/edenapi:edenapi",
        "//eden/scm/lib/edenapi/ext:edenapi_ext",
        "//eden/scm/lib/edenapi/types:edenapi_types",
        "//eden/scm/lib/minibytes:minibytes",
        "//eden/scm/lib/progress/model:progress-model",
        "//eden/scm/lib/repo/url:repourl",
        "//eden/scm/lib/revisionstore:revisionstore",
        "//eden/scm/lib/types:types",
        "//eden/scm/lib/util/format-util:format-util",
        "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader",
        "//eden/scm/saplingnative/bindings/modules/pyrevisionstore:pyrevisionstore",
    ],
)
